home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJINC106.ARJ / IOPRIVAT.H < prev    next >
C/C++ Source or Header  |  1992-03-29  |  1KB  |  41 lines

  1. //    This is part of the iostream library, providing -*- C++ -*- input/output.
  2. //    Copyright (C) 1991 Per Bothner.
  3. //
  4. //    This library is free software; you can redistribute it and/or
  5. //    modify it under the terms of the GNU Library General Public
  6. //    License as published by the Free Software Foundation; either
  7. //    version 2 of the License, or (at your option) any later version.
  8. //
  9. //    This library is distributed in the hope that it will be useful,
  10. //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12. //    Library General Public License for more details.
  13. //
  14. //    You should have received a copy of the GNU Library General Public
  15. //    License along with this library; if not, write to the Free
  16. //    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #include <stddef.h>
  19. #include <stdlib.h>
  20. #include <string.h>
  21. #include <unistd.h>
  22. #include "streambuf.h"
  23. #include <stdarg.h>
  24. #include <stddef.h>
  25.  
  26. #define _fstat(x, y) fstat(x,y)
  27. #define _isatty(fd) isatty(fd)
  28.  
  29. extern int __cvt_double(double number, register int prec, int flags,
  30.             char *signp, int fmtch, char *startp, char *endp);
  31.  
  32. /*#define USE_MALLOC_BUF*/
  33.  
  34. #ifndef USE_MALLOC_BUF
  35. #define ALLOC_BUF(size) new char[size]
  36. #define FREE_BUF(ptr) delete /*[]*/ (ptr)
  37. #else
  38. #define ALLOC_BUF(size) (char*)malloc(size)
  39. #define FREE_BUF(ptr) free(ptr)
  40. #endif
  41.